package com.example.lib_thread;

class MyRunnable implements Runnable {
    private String name;

    public MyRunnable(String name) {
        this.name = name;
    }

    public static void main(String[] args) {
        MyRunnable myRunnable = new MyRunnable("myRunnable");
        Thread thread = new Thread(myRunnable);
        thread.start();
    }

    @Override
    public void run() {
        System.out.println("Thread  is" + "\t" + name);
    }
}
